package com.example.demo.service;

import com.example.demo.dao.ParentDao;
import com.example.demo.model.Parent;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class ParentServiceImpl implements ParentService {
    @Resource
    ParentDao parentDao;

    @Override
    public Parent findParent() {
        return parentDao.findParent();
    }

    @Override
    public Boolean exist(String Phone, String PassWord) {
        String password = parentDao.findParentByPhone(Phone);
        return password.equals(PassWord);
    }


}
